package com.zby.charity.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.zby.charity.entity.Dto.LoginUser;
import com.zby.charity.entity.UserEntity;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author zby
 * @email 2069189112@qq.com
 * @date 2024-12-26 16:38:16
 */
public interface UserService extends IService<UserEntity> {

    long userRegister(String userName,String userAccount, String userPassword, String checkPassword);

    LoginUser userLogin(String userAccount, String userPassword, HttpServletRequest request);

    LoginUser getLoginUserVO(UserEntity user);
    boolean userLogout(HttpServletRequest request);
    UserEntity getLoginUser(HttpServletRequest request);
    Map<Integer, UserEntity> getUserMapByIds(List<Integer> ids);
//    boolean isAdmin(HttpServletRequest request);
//    boolean isAdmin(UserEntity user);
}

